<template>
  <div>
    <h1>订单记录列表</h1>

    <div>
      <el-table :data="tableData" stripe style="width: 100%">
        <el-table-column prop="recordId" label="序号" />
        <el-table-column prop="optRecord" label="操作记录" />
        <el-table-column prop="createTime" label="操作时间" />

        <el-table-column label="操作">
          <el-button type="primary">详情</el-button>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from "vue";
import { getOrderRecordList } from "@/api/api";
import { useRouter } from "vue-router";
import { ElMenu, ElMessage } from "element-plus";

const router = useRouter();
const tableData = ref([]);
const total = ref(0);

const loadList = () => {
  getOrderRecordList().then((res) => {
    if (res.data.code == 200) {
      tableData.value = res.data.data;
    }
  });
};
onMounted(() => {
  loadList();
});
</script>

<style scoped></style>
